package dao.pojo;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * DeviceInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "device_info", catalog = "cloud_ifw")
public class DeviceInfo extends BasePojo implements java.io.Serializable {

	// Fields

	private Integer deviceIndex;
	private String deviceSn;
	private String deviceName;
	private String deviceBindCode;
	private String deviceModel;
	private String deviceExpireTime;
	private String deviceVersion;
	private String deviceCpuModel;
	private String deviceMemTotal;
	private Timestamp deviceActiveLast;
	private String deviceIp;
	private Integer deviceUptime;
	private Integer deviceOnline;
	private Integer deviceCpuUsage;
	private Integer deviceMemUsage;
	private String deviceWanIp1;
	private String deviceWanIp2;
	private String deviceWanIp3;
	private Integer deviceWebPort;
	private String deviceWebPasswd;
	private Integer deviceTxTotal;
	private Integer deviceRxTotal;
	private String note;

	@Override
	public Object getEntityId() {
		// TODO Auto-generated method stub
		return deviceIndex;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "device_index", unique = true, nullable = false)
	public Integer getDeviceIndex() {
		return this.deviceIndex;
	}

	public void setDeviceIndex(Integer deviceIndex) {
		this.deviceIndex = deviceIndex;
	}

	@Column(name = "device_sn", nullable = false, length = 32)
	public String getDeviceSn() {
		return this.deviceSn;
	}

	public void setDeviceSn(String deviceSn) {
		this.deviceSn = deviceSn;
	}

	@Column(name = "device_name", nullable = false, length = 128)
	public String getDeviceName() {
		return this.deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	@Column(name = "device_bind_code", nullable = false, length = 32)
	public String getDeviceBindCode() {
		return this.deviceBindCode;
	}

	public void setDeviceBindCode(String deviceBindCode) {
		this.deviceBindCode = deviceBindCode;
	}

	@Column(name = "device_model", nullable = false, length = 32)
	public String getDeviceModel() {
		return this.deviceModel;
	}

	public void setDeviceModel(String deviceModel) {
		this.deviceModel = deviceModel;
	}

	@Column(name = "device_expire_time", nullable = false, length = 32)
	public String getDeviceExpireTime() {
		return this.deviceExpireTime;
	}

	public void setDeviceExpireTime(String deviceExpireTime) {
		this.deviceExpireTime = deviceExpireTime;
	}

	@Column(name = "device_version", nullable = false, length = 32)
	public String getDeviceVersion() {
		return this.deviceVersion;
	}

	public void setDeviceVersion(String deviceVersion) {
		this.deviceVersion = deviceVersion;
	}

	@Column(name = "device_cpu_model", nullable = false, length = 64)
	public String getDeviceCpuModel() {
		return this.deviceCpuModel;
	}

	public void setDeviceCpuModel(String deviceCpuModel) {
		this.deviceCpuModel = deviceCpuModel;
	}

	@Column(name = "device_mem_total", nullable = false)
	public String getDeviceMemTotal() {
		return this.deviceMemTotal;
	}

	public void setDeviceMemTotal(String deviceMemTotal) {
		this.deviceMemTotal = deviceMemTotal;
	}

	@Column(name = "device_active_last", nullable = false, length = 19)
	public Timestamp getDeviceActiveLast() {
		return this.deviceActiveLast;
	}

	public void setDeviceActiveLast(Timestamp deviceActiveLast) {
		this.deviceActiveLast = deviceActiveLast;
	}

	@Column(name = "device_ip", nullable = false, length = 32)
	public String getDeviceIp() {
		return this.deviceIp;
	}

	public void setDeviceIp(String deviceIp) {
		this.deviceIp = deviceIp;
	}

	@Column(name = "device_uptime", nullable = false)
	public Integer getDeviceUptime() {
		return this.deviceUptime;
	}

	public void setDeviceUptime(Integer deviceUptime) {
		this.deviceUptime = deviceUptime;
	}

	@Column(name = "device_online", nullable = false)
	public Integer getDeviceOnline() {
		return this.deviceOnline;
	}

	public void setDeviceOnline(Integer deviceOnline) {
		this.deviceOnline = deviceOnline;
	}

	@Column(name = "device_cpu_usage", nullable = false)
	public Integer getDeviceCpuUsage() {
		return this.deviceCpuUsage;
	}

	public void setDeviceCpuUsage(Integer deviceCpuUsage) {
		this.deviceCpuUsage = deviceCpuUsage;
	}

	@Column(name = "device_mem_usage", nullable = false)
	public Integer getDeviceMemUsage() {
		return this.deviceMemUsage;
	}

	public void setDeviceMemUsage(Integer deviceMemUsage) {
		this.deviceMemUsage = deviceMemUsage;
	}

	@Column(name = "device_wan_ip1", nullable = false, length = 32)
	public String getDeviceWanIp1() {
		return this.deviceWanIp1;
	}

	public void setDeviceWanIp1(String deviceWanIp1) {
		this.deviceWanIp1 = deviceWanIp1;
	}

	@Column(name = "device_wan_ip2", nullable = false, length = 32)
	public String getDeviceWanIp2() {
		return this.deviceWanIp2;
	}

	public void setDeviceWanIp2(String deviceWanIp2) {
		this.deviceWanIp2 = deviceWanIp2;
	}

	@Column(name = "device_wan_ip3", nullable = false, length = 32)
	public String getDeviceWanIp3() {
		return this.deviceWanIp3;
	}

	public void setDeviceWanIp3(String deviceWanIp3) {
		this.deviceWanIp3 = deviceWanIp3;
	}

	@Column(name = "device_web_port", nullable = false)
	public Integer getDeviceWebPort() {
		return this.deviceWebPort;
	}

	public void setDeviceWebPort(Integer deviceWebPort) {
		this.deviceWebPort = deviceWebPort;
	}

	@Column(name = "device_web_passwd", nullable = false, length = 64)
	public String getDeviceWebPasswd() {
		return this.deviceWebPasswd;
	}

	public void setDeviceWebPasswd(String deviceWebPasswd) {
		this.deviceWebPasswd = deviceWebPasswd;
	}

	@Column(name = "device_tx_total", nullable = false)
	public Integer getDeviceTxTotal() {
		return this.deviceTxTotal;
	}

	public void setDeviceTxTotal(Integer deviceTxTotal) {
		this.deviceTxTotal = deviceTxTotal;
	}

	@Column(name = "device_rx_total", nullable = false)
	public Integer getDeviceRxTotal() {
		return this.deviceRxTotal;
	}

	public void setDeviceRxTotal(Integer deviceRxTotal) {
		this.deviceRxTotal = deviceRxTotal;
	}

	@Column(name = "note", length = 50)
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

}